home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / java / appleevent send and receive / source / shared sources / timercallback.java < prev   
Encoding:
Java Source  |  2000-06-23  |  1.1 KB  |  35 lines

  1. /**
  2.  * Apple Worldwide Developer Technical Support
  3.  *
  4.  * Sample showing how to send and receive AppleEvents using JDirect 2.
  5.  *
  6.  * File: TimerCallback.java
  7.  *
  8.  * This interface should be implemented by classes who want a callback from the Timer class.
  9.  * @see Timer
  10.  *
  11.  * @author Levi Brown
  12.  * @author Apple Computer, Inc.
  13.  *
  14.  * Copyright ©1999 Apple Computer, Inc.
  15.  * All rights reserved.
  16.  *
  17.  * @version 1.0
  18.  * 4/15/1999 Shipped as 'AppleEvent Send and Receive' sample.
  19.  *
  20.  * You may incorporate this sample code into your applications without
  21.  * restriction, though the sample code has been provided "AS IS" and the
  22.  * responsibility for its operation is 100% yours.  However, what you are
  23.  * not permitted to do is to redistribute the source as "Apple Sample
  24.  * Code" after having made changes. If you're going to re-distribute the
  25.  * source, we require that you make it clear in the source that the code
  26.  * was descended from Apple Sample Code, but that you've made changes.
  27.  */
  28. public interface TimerCallback
  29. {
  30.     /**
  31.      * This function gets called by the timer when the elapsed time reaches the sleep time.
  32.      */
  33.     public void timeIsUp();
  34. }
  35.